package com.library.entity;

import java.sql.Timestamp;

public class BorrowRecord {
    private int id;
    private int userId;
    private int bookId;
    private Timestamp borrowDate;
    private Timestamp returnDate;
    private int status; // 0-未归还，1-已归还

    public BorrowRecord() {}

    public BorrowRecord(int id, int userId, int bookId, Timestamp borrowDate, Timestamp returnDate, int status) {
        this.id = id;
        this.userId = userId;
        this.bookId = bookId;
        this.borrowDate = borrowDate;
        this.returnDate = returnDate;
        this.status = status;
    }

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public int getUserId() { return userId; }
    public void setUserId(int userId) { this.userId = userId; }
    public int getBookId() { return bookId; }
    public void setBookId(int bookId) { this.bookId = bookId; }
    public Timestamp getBorrowDate() { return borrowDate; }
    public void setBorrowDate(Timestamp borrowDate) { this.borrowDate = borrowDate; }
    public Timestamp getReturnDate() { return returnDate; }
    public void setReturnDate(Timestamp returnDate) { this.returnDate = returnDate; }
    public int getStatus() { return status; }
    public void setStatus(int status) { this.status = status; }
}    